package com.nineclock.api.attendance;

import com.nineclock.attendance.dto.AttendPunchDTO;
import com.nineclock.attendance.dto.AttendPunchUserWholeDayDTO;
import com.nineclock.common.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.io.IOException;
import java.util.List;

@Api(value = "打卡接口管理", tags = "考勤服务")
public interface AttendPunchControllerApi {

    @ApiOperation(value = "打卡: 移动端打卡")
    public Result punch(AttendPunchDTO punchDTO);


    @ApiOperation(value = "打卡: 获取当前用户打卡数据")
    public Result<AttendPunchUserWholeDayDTO> getPunchData();


    @ApiOperation(value = "查询指定时间段内的考勤列表数据")
    public Result<List<AttendPunchDTO>> queryMembers(String startTime, String endTime);

    @ApiOperation(value = "导出考勤列表数据")
    public void export(String startTime, String endTime) throws IOException;
}
